

#打印100以内3的倍数


for i in range(1,101):
    if i%3 == 0:
        print(i)


print("-"*100)

j=1
while j<=100:

    if j%3 == 0:
        print(j)

    j += 1